package cn.livingCloud.service;

import cn.livingCloud.dto.MemberDto;
import cn.livingCloud.dto.MemberInfoDto;
import cn.livingCloud.dto.MemberJsonDto;
import cn.livingCloud.dto.MemberListDto;
import cn.livingCloud.entity.user.Member;

import java.util.List;

/**
 * Created by sujiantang on 2015/12/29.
 */
public interface MemberService {
    /**
     * 使用授权码自动登录
     *
     * @param code 授权码
     */
    void loginByCode(String code);

    void load(MemberListDto memberListDto);

    MemberDto uploadState(String uuid, boolean state);

    MemberInfoDto loadMemberInfoDto();

    @Deprecated
    Member createTestMember();

    MemberListDto findUnBoundMember(String key);

    List<MemberJsonDto> findMembers(String key);

    MemberListDto findUnbindMember(String key);
}
